package com.wltt.product.frfront.mapper;

import com.wltt.product.frfront.mapper.base.BaseMapper;
import com.wltt.product.frfront.model.bo.AllFormulaBO;
import com.wltt.product.frfront.model.bo.FormulaDetailBO;
import com.wltt.product.frfront.model.po.FormulaPO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName: FormulaPO
 * @Description: 配方 Dao
 * @Date: 2025-07-06 16:23:42
 * @Author yanggl
 */
public interface FormulaMapper extends BaseMapper<FormulaPO, Long> {

    /**
     * 查询所有配方
     *
     * @return
     */
    List<AllFormulaBO> queryALL();

    /**
     * 查询所有配方用于下拉选
     *
     * @return
     */
    List<FormulaPO> allFormulaForSelect();

    /**
     * 配方详情
     *
     * @param id 配方id
     *
     * @return
     */
    FormulaDetailBO formulaDetail(@Param("id") Long id);
}